//
//  ViewController.swift
//  summaryGraph
//
//  Created by Ezio on 2017/2/21.
//  Copyright © 2017年 飞天江郎. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        
        
        let fromatter = DateFormatter()
        fromatter.dateFormat = "yyyy-MM-dd"
        fromatter.timeZone = NSTimeZone.init(forSecondsFromGMT: 8*3600) as TimeZone!
        let fromDatess = fromatter.date(from: "2015-2-1")
        
        let test = ECCalenderView.init(frame: CGRect(x:0,y:20,width:UIScreen.main.bounds.size.width,height:500), startDate: fromDatess!)
        
        self.view.addSubview(test)
        
       
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


    
}


